package com.lagou.bean;

import com.lagou.service.HelloService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Component;

import java.util.Random;

@Component
public class ConsumerComponent {

    //@Reference(mock = "force:return 1234")
    @Reference(check = false)
    private HelloService helloService;

    public void methodA() throws InterruptedException {
        helloService.methodA();
    }

    public void methodB() throws InterruptedException {
        helloService.methodB();
    }

    public void methodC() throws InterruptedException {
        helloService.methodC();
    }

}
